#include <stdio.h>

int main1()
{
    char a[100] = "abfdafd哈哈jkljdf我hhh";

    int i;
    for (i = 0; i < 30; i++)
    {
        printf("%d\n", a[i]);
    }
    return 0;
}

int main()
{
    char a[100] = "abfdafd哈哈jkljdf我hhh";
    //汉字UTF8有三个字节
    //汉字字节的ASCII为负数

    int sum = 0;
    int index = 0;
    while(a[index])
    {
        if (a[index] < 0)
        {
            sum++;
        }
        index++;
    }

    printf("sum = %d", sum / 3);
    return 0;
    return 0;
}
